import { Socket } from 'socket.io-client';

let socketio: Socket;

export function setSocket(socket: Socket) {
  socketio = socket;
}

export function getSocket() {
  if (socketio) {
    return socketio;
  }
}
